package personal.emailsender.server;

import personal.emailsender.client.MailSendingDispachingService;
import personal.emailsender.server.service.dispatcher.EmailSendingDispatcherUtil;
import personal.emailsender.shared.data.EmailContent;
import personal.emailsender.shared.data.ServerResponse;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
public class MailSendingDispatchingServiceImpl extends RemoteServiceServlet implements
		MailSendingDispachingService {

	private static final long serialVersionUID = -8434398046563988080L;

	@Override
	public ServerResponse sendEmail(EmailContent email) {
		return EmailSendingDispatcherUtil.sendEmail(email);
	}
}
